ARM: vGIC: rework gic_remove_from_queues()
authorAndre Przywara <andre.przywara@arm.com>
Thu, 25 May 2017 18:06:41 +0000 (19:06 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Wed, 14 Jun 2017 18:38:37 +0000 (11:38 -0700)
commita3c32b833254b16dcdc08227c13646ab8bba931c
treeaee26e4ee439e52c89866a98c09e0f59b1772cdf
parente059a089a6e9b6aa108b30a272c7063eba1a3a6f
ARM: vGIC: rework gic_remove_from_queues()

The function name gic_remove_from_queues() was a bit of a misnomer,
since it just removes an IRQ from the pending queue, not both queues.
Rename the function to make this more clear, also give it a pointer to
a struct pending_irq directly and rely on the VGIC VCPU lock to be
already taken, so this can be used in more places. This results in the
lock to be taken in the caller instead now.
Replace the list removal in gic_clear_pending_irqs() with a call to
this function.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Julien Grall <julien.grall@arm.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/gic.c
xen/arch/arm/vgic.c
xen/include/asm-arm/gic.h